/**************************
 * mm.h -- the header file for mm.c 
 * This should contain all the dynamic
 * memory manager functions
 *
 *
 *************************/

#ifndef _MM_H_
#define _MM_H_

int mm_init(unsigned long size);
int mm_end();
char *mm_alloc(unsigned long no_of_chars);
int mm_free(char *ptr);
int mm_assign(char *ptr, char val);

typedef struct allocation {
    
    unsigned long size;
    char* ptr;
    struct allocation* next;
    
}alloc;


int add_node(char* ptr, unsigned long size);
//int assign_search(unsigned long
unsigned long search(char* ptr);
int delete_node(char* ptr);


#endif
